<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <script>
            let count = 0;

            function clickFunc() {
                document.getElementById('h1').innerText = "数值：" + (++count)
            }
        </script>
    </head>
    <body>
        <div style="text-align: center;">
            <h1 id="h1" style="font-size: 40px">数值：0</h1>
            <button style="font-size: 30px; background-color: burlywood" onclick="clickFunc()">点击</button>
        </div>
    </body>
</html>